-- GENERATED SPELL FOR [Spectral Sentry] --


function spell0_16424(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(29576,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16424', 559, 1)
end

function spell1_16424(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(29575,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16424', 608, 1)
end

function Sorts_16424(pUnit, Event)
local choix_sorts_16424 = math.random(0, 1)
if choix_sorts_16424 == 0 then
pUnit:RegisterEvent('spell0_16424', 1, 1)
end
if choix_sorts_16424 == 1 then
pUnit:RegisterEvent('spell1_16424', 1, 1)
end
end

function mob16424_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16424', math.random(1500, 3000), 1)
end

function mob16424_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16424_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16424_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16424, 1, 'mob16424_Action')
RegisterUnitEvent(16424, 2, 'mob16424_Leave')
RegisterUnitEvent(16424, 3, 'mob16424_Kill')
RegisterUnitEvent(16424, 4, 'mob16424_Die')
